<template>
    <div>
        <el-table :data="tableData" style="width: 100%">
            <el-table-column prop="nhmc" label="能耗名称"> </el-table-column>
            <el-table-column label="上半夜">
                <el-table-column prop="sbynh" label="能耗"> </el-table-column>
                <el-table-column prop="sbynhz" label="能耗值"> </el-table-column>
            </el-table-column>
            <el-table-column label="下半夜">
                <el-table-column prop="xbynh" label="能耗"> </el-table-column>
                <el-table-column prop="xbynhz" label="能耗值"> </el-table-column>
            </el-table-column>
        </el-table>
    </div>
</template>

<script>
export default {
    props: ["height"],
    components: {},
    // computed: {
    //     curType() {
    //         return this.type
    //     },
    //     curPhComs() {
    //         return this.phComs
    //     },
    //     curPhIndexs() {
    //         return this.phIndexs
    //     }
    // },
    // watch: {
    //     curType(newVal) {
    //         this.typeName = newVal
    //     },
    //     curPhComs(newVal) {
    //         this.phCurComs = newVal
    //     },
    //     curPhIndexs(newVal) {
    //         this.phCurIndexs = newVal
    //     }
    // },
    data() {
        return {
            phCurComs: [],
            phCurIndexs: [],
            tableData: [
                {
                    nhmc: "电能耗",
                    sbynh: "1500KWH",
                    sbynhz: "900元",
                    xbynh: "1000KWH",
                    xbynhz: "600元"
                },
                {
                    nhmc: "水能耗",
                    sbynh: "1000m³",
                    sbynhz: "3560元",
                    xbynh: "800m³",
                    xbynhz: "2848元"
                }
            ],
            tableRealHeight: (document.body.clientHeight - 130) / 4 + 48,
            tableHeight: (document.body.clientHeight - 130) / 4 + 50,
            curHeight: (document.body.clientHeight - 130) / 2,
            curTopHeight: (document.body.clientHeight - 130) / 2 - 200,
            curBottomHeight: (document.body.clientHeight - 130) / 2 + 200,
            curBarHeight: (document.body.clientHeight - 130) / 2 - 10
        }
    },
    methods: {}
}
</script>

<style scoped></style>
